<?php
class Admin_Form_Promotion extends Zend_Form
{

	public function init()
	{
		// Config
		$this->setName('tourform')->setAction('/detailtour/process')->setMethod('POST');

		//Validators
		$length_validate = new Zend_Validate_StringLength(6, 50);
		/********************************************************************************
		 MORE INFOMATIONS
		*********************************************************************************/
		// PRICE
		$price = new Zend_Form_Element_Text('price');
		$price->setLabel('Price')
		->setAttrib('minlength', '6')
		->setAttrib('class', 'field-text large required')
		->setDecorators(array(	'ViewHelper', 'Description', 'Errors',	array(array('data' => 'HtmlTag'), array('tag' => 'span')),
				array('Label', array('tag' => 'span')),
				array(array('row' => 'HtmlTag'), array('tag' => 'p', 'class' => 'clear'))
		))
		->addValidator($length_validate);

		/********************************************************************************
		 DESCRIPTIONS
		*********************************************************************************/

		require_once 'Descriptionform.php';

		$this->addElements(array(
				$description_vi,
				$description_en,
				$description_ja,
				$description_zh,
				$description_fr,
				$price,
		));


		$this->setDecorators(array('FormElements', array('HtmlTag', array('tag' => 'section')), 'Form'));
		return $this;
	}
}
?>